package org.openrbac.rbac.vo;


/**
 * @author bapie
 */

public enum RCode {
    /**
     * 成功
     */
    SUCCESS(2000, "操作成功"),
    /**
     * 通用的失败
     */
    ERROR(1000, "服务器开小差！"),
    /**
     * SQL错误
     */
    ERROR_SQL(1001, "数据库错误");
    /**
     * 错误码
     */
    private int code;
    /**
     * 错误提示
     */
    private String msg;

    RCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
